package com.lancoo.ccas52.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 教师
 * </p>
 *
 * @author quin.song
 * @since 2023-01-31
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(of = {"schoolId","baseTeacherId","term"})
@ApiModel(value = "Teacher对象", description = "教师")
public class Teacher implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "teacher_id", type = IdType.AUTO)
    private Long teacherId;

    private String baseTeacherId;

    private Integer taskId;

    private String teacherName;

    @ApiModelProperty("教师头像")
    private String imageUrl;

    private String collegeId;

    private String collegeName;

    @ApiModelProperty("所属校区")
    private String campusId;

    private String campusName;

    @ApiModelProperty("男、女。保密")
    private String sex;

    @ApiModelProperty("教师职称")
    private String professionalTitle;

    private String schoolId;

    @ApiModelProperty("学期")
    private String term;

    @ApiModelProperty("是否可用 0为不可用 1位可用")
    private Integer isEnable;

    @TableField(exist = false)
    @ApiModelProperty("教学班id,获取教学班详情时使用")
    private Long teachingClassId;

    @TableField(exist = false)
    @ApiModelProperty("对应授课类型 0:环节  1讲授 2实验 3上机 4其他")
    private Integer hourType;

    @TableField(exist = false)
    @ApiModelProperty("教师禁排")
    private List<RuleTeacherTime> ruleTeacherTimes;

    @TableField(exist = false)
    @ApiModelProperty("1待设置 2已设置")
    private Integer state;
}
